// 服务器
var http=require("http");
var url=require("url");

function start(route,handle){
    http.createServer(function(request,response){
        console.log("浏览器发送请求！识别请求的pathname是：");
        var pathname=url.parse(request.url).pathname;
        console.log(pathname);
        route(pathname,handle,request,response);        
    }).listen(8888);
    console.log("服务器已经创建启动！");
}

exports.start=start;